package com.ccp.dev.workflow.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.workflow.model.BpmNewFlowTrigger;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassDescribe:
 * 触发新流程设置数据交换层
 * @author :wangcheng
 * Date: 2019-07-12
 */
@Repository
public interface BpmNewFlowTriggerDao extends IBaseMapper<BpmNewFlowTrigger, String> {
    /**
     * 通过 节点ID 流程key获取触发设置
     * @param flowKey 流程key
     * @param nodeId 节点ID
     * @return
     */
    BpmNewFlowTrigger getByFlowKeyNodeId(@Param("flowKey") String flowKey, @Param("nodeId") String nodeId);

    /**
     * 根据流程key获取触发定义
     * @param flowKey
     * @return
     */
    List<BpmNewFlowTrigger> queryByFlowKey(String flowKey);
}
